﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using DayPilot.Web.Ui;

namespace AnyOffice.general.calendar.manage
{
    public partial class today : ModulePage
    {
     
        protected void Page_Load(object sender, EventArgs e)
        {
            DateTime specifyDate = (Request.QueryString["date"] != null) ? DateTime.Parse(Request.QueryString["date"].ToString()) : DateTime.Now;
        //    this.DayPilotCalendar1.Date = specifyDate;
            this.DayPilotCalendar1.StartDate = specifyDate;//////////////////////
            this.litToday.Text = specifyDate.ToString("yyyy年M月d日");
            DataTable table = new CalendarDao().SpecifyDay(base.Conn, base.User.Identity.Name, specifyDate);
            if (table.Rows.Count > 0)
            {
                this.DayPilotCalendar1.DataSource = table;
                this.DayPilotCalendar1.DataBind();
            }
        } 

    }
}
